package com.salts.Dao;

import com.salts.domain.dto.ClothDto;
import com.salts.domain.dto.ColorDto;
import com.salts.domain.dto.SizeDto;
import com.salts.domain.po.Stock;
import com.salts.domain.po.StockView;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository//交由Spring容器管理
public interface StockMapper {
    List<StockView> selectClothStock(List<Integer> clothIds);

    StockView getStockInfo(StockView stockView);

    List<SizeDto> selectSize(int clothId);
    List<ColorDto> selectColor(int clothId);

    Integer queryStock(ClothDto clothDto);

    List<ClothDto> getAllInfo();

    StockView query(ClothDto clothDto);
}
